<?php
$conn=mysql_connect("localhost","root","") or die("can't connect this database");
mysql_select_db("demo_mysql",$conn);
$id = $_GET ['userid'];
$sql="delete from user where id='".$id."'";
mysql_query($sql);
header("location:list.php");
?>